﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:MiniTwitter_Properties="clr-namespace:MiniTwitter.Properties"
    x:Class="MiniTwitter.PopupWindow"
    x:Name="Window"
    Width="350" SizeToContent="Height" ShowInTaskbar="False" ResizeMode="NoResize"
	FontFamily="{Binding Source={x:Static MiniTwitter_Properties:Settings.Default}, Path=FontName}" 
    Focusable="False" Topmost="True" ShowActivated="False" Style="{DynamicResource PopupWindowStyle}"
    Loaded="PopupWindow_Loaded" SizeChanged="PopupWindow_SizeChanged"
	Title="{Binding Path=Timeline.Items.Count, ElementName=Window, StringFormat=MiniTwitter - 新着 \{0\} 件}">
	<!--modified by yuki. for FontFamily-->
    <Window.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Close" Executed="CloseCommand_Executed"/>
    </Window.CommandBindings>
    <ListBox Grid.Row="1" ItemsSource="{Binding Path=Timeline.Items, ElementName=Window}"
             AlternationCount="2" VirtualizingStackPanel.IsVirtualizing="True"
             VirtualizingStackPanel.VirtualizationMode="Recycling" ScrollViewer.IsDeferredScrollingEnabled="True"
             Style="{DynamicResource PopupListBoxStyle}" ItemContainerStyle="{DynamicResource PopupListBoxItemStyle}"
             ItemTemplateSelector="{StaticResource TimelineStyleSelector}"/>
</Window>
